﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentNHibernate.Mapping;
using TaiDouCommon.Model;

namespace TaiDouPhotonServer.DB.Mapping
{
    class UserMap:ClassMap<User>
    {
        public UserMap() //这里的X是User的实例
        {
            Id(x => x.Id).Column("Id");//设置id属性为主键
            Map(x => x.UserName).Column("username");
            Map(x => x.Password).Column("password");

            Table("user");//关联表
        }
    }
}
